# 编写将用让celery去执行的任务代码# from celery_tasks.sms.yuntongxun.sms import CCPfrom meiduo_mall.libs.yuntongxun.sms import CCPfrom celery_tasks.main import celery_app@celery_app.task(name='send_sms_code')  # 只有用此装饰器装饰的函数才能被celery识别def send_sms_code(mobile, sms_code):    """    使用celery异步发短信    :param mobile: 要接收短信的手机号    :param sms_code: 短信验证码    """    CCP().send_template_sms(mobile, [sms_code, 5], 1)